SpellQueue = CLASS('SpellQueue')

function SpellQueue:ctor( )
	self.spellList = {}
end

function SpellQueue:cast()
	for i,spell in ipairs(self.spellList) do
		-- print('cast spell ', spell.name)
		if spell:cast() and not spell.continue then
			-- print('success!!!')
			break
		end
	end
end

function SpellQueue:addSpell( spell )
	table.insert(self.spellList, spell)
end

print('SpellQueue.lua load ...')
